package wellness.activities.adapters;

import android.R.style;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.SpinnerAdapter;
import android.widget.TextView;

public class IntensidadeAdapter extends BaseAdapter implements SpinnerAdapter {
	
	private Context context;
	
	public IntensidadeAdapter(Context context) {
		this.context = context;
	}
	
	public static String[] intensidades = new String[]{"Pesada","Pesada com Intevalo","Moderada Pesada","Moderada","Leve"};

	public int getCount() {
		return intensidades.length;
	}

	public Object getItem(int position) {
		return intensidades[position];
	}

	public long getItemId(int position) {
		return position;
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		TextView semana = new TextView(context);
		semana.setPadding(10, 10, 10, 10);
		semana.setTextAppearance(context, style.TextAppearance_Medium);
		semana.setText(intensidades[position]);
		semana.setTextColor(Color.DKGRAY);
		return semana;
	}
	
}
